/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package azure;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Class to represent a Manga Volume, which is a collection of Chapters
 * @author Gargravarr
 * @date Aug 15, 2011
 */
public class Volume implements Serializable
{
    public int volumeID, volumeNo, volumeYear;
    public String volumeDescription;
    public ArrayList<Chapter> chapters;
    public boolean isModified;

    public Volume(int volumeID, int volumeNo, int volumeYear, String volumeDescription)
    {
	this.volumeID = volumeID;
	this.volumeNo = volumeNo;
	this.volumeYear = volumeYear;
	this.volumeDescription = volumeDescription;
	chapters = new ArrayList<Chapter>();
    }

    public Volume()
    {
	this(0, 0, 0, "");
    }
    
    @Override
    public String toString()
    {
	return "Volume " + this.volumeNo;
    }
}
